package xcu.lxj.nettychat;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author XinJian Lei
 * @Date 2024/9/15 16:19
 * @Version 1.0
 */

@MapperScan("xcu.lxj.nettychat.**.mapper")
@SpringBootApplication(scanBasePackages = "xcu.lxj.nettychat")
@ServletComponentScan(basePackages = "xcu.lxj.nettychat")
public class NettyChatMain {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(NettyChatMain.class, args);
        System.out.println("http://localhost:"+run.getEnvironment().getProperty("server.port")+"/doc.html");
    }

}
